package com.assignwork.entity.pc;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName ShipStat
 * @Description
 * @Author sl
 * @Date 2023/11/30 9:07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "船舶状态", description = "")
@TableName("ship_stat")
public class ShipStat extends TenantEntity implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "主键")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "船舶预报id")
    private Long shipId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "靠泊时间")
    private LocalDateTime berthAlongsideTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "离泊时间")
    private LocalDateTime unberthingTime;

    @ApiModelProperty(value = "泊位编码")
    private String berthCode;

    @ApiModelProperty(value = "泊位名称")
    private String berthName;
}
